﻿using System;

namespace ConsoleApplication1
{
    class MyNode
    {
        public virtual MyNode[] Childs { get; set; }
        public String Name { get; set; }

        public MyNode(string name)
        {
            this.Name = name;
        }
        public virtual string Accept(XMLNodeVisitor visitor)
        {
            return visitor.VisitNode(this);
        }
    }
}